import MFooter from '@/components/MFooter'
// import MHeader from '@/components/MHeader'
const Home = () => import('@/pages/Home')
const Details = () => import('@/pages/Details')
const Find = () => import('@/pages/Find')
const BuyTickets = () => import('@/pages/BuyTickets')
const Mine = () => import('@/pages/Mine')
// const Login = () => import('@/pages/Login')
// const Register = () => import('@/pages/Register')
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    title: '首页',
    isMFooter: true,
    isMHeader: true,
    components: {
      default: Home,
      mfooter: MFooter
    },
    children: [{
      path: 'details',
      name: 'details',
      component: Details
    }]
  },
  {
    path: '/find',
    name: 'find',
    title: '发现',
    isMFooter: true,
    components: {
      default: Find,
      mfooter: MFooter
    }
  },
  {
    path: '/buyTickets',
    name: 'buyTickets',
    title: '买票',
    isMFooter: true,
    components: {
      default: BuyTickets,
      mfooter: MFooter
    }
  },
  {
    path: '/mine',
    name: 'mine',
    title: '我的',
    isMFooter: true,
    components: {
      default: Mine,
      mfooter: MFooter
    }
  }
//   {
//     path: '/login',
//     name: 'login',
//     components: {
//       default: Login
//     }
//   },
//   {
//     path: '/register',
//     name: 'register',
//     components: {
//       default: Register
//     }
//   }
]
export default routes
